package com.kt.kvw.user.model.form;

import com.kt.kvw.validation.Scope;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * Created with IntelliJ IDEA.
 * Desc:
 *
 * @author: keen
 * Date: 2020-07-05
 * Time: 22:36
 */
@Data
@ToString
public class RegisterForm {
    @NotBlank(message = "用户不能为空")
    @Length(max = 60, message = "用户名不能超过60个字符")
    private String userName;
    @NotBlank(message = "密码不能为空")
    @Length(max = 60, message = "密码不能超过20个字符")
    private String password;
    @NotBlank(message = "手机号码不能为空")
    @Length(max = 60, message = "手机号码不能超过13个字符")
    //@Pattern(regexp = "/^1[3-9]\\d{9}$/",message = "请输入正确的手机号码")
    private String phone;
    private String authCode;
}
